<?php foreach($cart AS $item): ?>
<div class="goods-shop">
    <div class="shop-header">
        <div class="am-check">
            <span class="check-wrapper checkShop <?php if(!empty($item['status'])){ echo 'active';} ?>" data-uid="<?php echo $item['uid'];?>" ></span>
        </div>
        <div class="shopping-title">
            <div class="am-check">
                <span class="check-wrapper cc-one"></span>
            </div>
            <p><?php echo $item['alias_name'] ?></p>
        </div>
    </div>
    <ul>
        <?php foreach($item['shop_goods'] AS $value ): ?>
        <li>
            <div class="shop-bd">
                <div class="am-check">
                    <span class="check-wrapper changeSelected <?php if(!empty($value->status)){ echo 'active';} ?>" data-id="<?php echo $value->goods_attr_id;?>" ></span>
                </div>
                <div class="shopping-body am-cf">
                    <a href="<?php echo site_url('tourism/goods/info/'.$value->goods_attr_id); ?>" class="shop-img">
                        <img src="<?php echo $this->config->show_image_url($value->images, '300-300')?>">">
                    </a>
                    <div class="shop-text">
                        <a href="<?php echo site_url('tourism/goods/info/'.$value->goods_attr_id); ?>" title="<?php echo $value->goods_name; ?>" class="text">
                            <?php echo $value->goods_name; ?>
                        </a>
                        <span>￥<?php echo $value->shop_price; ?></span>
                        <div class="tb-namber am-cf">
                            <a href="javascript:;" onclick="javascript:modifyGoodsNum(this,-1,2);" class="tb-reduce <?php if($value->goods_num <= 1) {echo ' tb-no';}?>">
                                <i class="iconfont">-</i>
                            </a>
                            <input type="text" name="goodsNum" value="<?php echo $value->goods_num;?>" data-id="<?php echo $value->goods_attr_id;?>" onchange="javascript:modifyGoodsNum(this,0,2);" class="tb-text" >
                            <a href="javascript:;" onclick="javascript:modifyGoodsNum(this,1,2);" class="tb-add <?php if($value->goods_num >= 100) { echo ' tb-no';}?>">
                                <i class="iconfont">+</i>
                            </a>
                        </div>
                    </div>
                    <div class="shop-del">
                        <div class="lesty">
                            <span class="check-wrapper del" data-id="<?php echo $value->id;?>" ></span>
                        </div>
                        <div class="lesty">
                            <span class="check-wrapper collect <?php if($value->eid){ echo 'active';} ?>" onclick="javascript:addShrine(<?php echo $value->goods_attr_id;?>,this);" ></span>
                        </div>
                    </div>
                </div>
            </div>
        </li>
        <?php endforeach; ?>
    </ul>
</div>
<?php endforeach; ?>

<?php if (!empty($cartDisabled)): ?>
    <ul class="shop-shxiao">
        <?php foreach($cartDisabled as $value): ?>
        <li>
            <div class="shop-bd">
                <div class="am-check am-sx">
                    <span class="shxiao">失效</span>
                </div>
                <div class="shopping-body am-cf">
                    <a class="shop-img" href="<?php echo site_url('tourism/goods/info/'.$value->goods_attr_id); ?>">
                        <img src="<?php echo $this->config->show_image_url($value->images, '300-300') ?>">
                    </a>
                    <div class="shop-text">
                        <a class="text" title="<?php echo $value->goods_name; ?>"><?php echo $value->goods_name; ?></a>
                        <span class="baby">宝贝已经卖光了</span>
                        <a href="<?php site_url('tourism/goods/search');?>" class="am-btn similarity">找相似</a>
                    </div>
                    <div class="shop-del">
                        <div class="lesty">
                            <span class="check-wrapper del" data-id="<?php echo $value->id;?>"></span>
                        </div>
                    </div>
                </div>
            </div>
        </li>
        <?php endforeach ?>
    </ul>
    <div class="am-empty">
        <button class="am-btn" onclick="javascript:clearCartDisabled();">清空失效宝贝</button>
    </div>
<?php endif ?>